#ifndef CVCONTENT_H
#define CVCONTENT_H

#include <QObject>
#include <QList>

#include "model/comment.h"
class Content : public QObject
{
    Q_OBJECT
public:
    explicit Content();
    ~Content();

    QString getId();
    QString getTitle();
    QString getDescription();
    QString getTimeCreated();
    QString getTimeUpdated();
    QString getOwner();
    QString getOwnerIcon();
    QList<Comment *> *getComments();
signals:
    
public slots:
    void setId(const QString &id);
    void setTitle(const QString &title);
    void setDescription(const QString &description);
    void setTimeCreated(const QString &timeCreated);
    void setTimeUpdated(const QString &timeUpdated);
    void setOwner(const QString &owner);
    void setOwnerIcon(const QString &ownerIcon);
    void setComments(QList<Comment *> *comments);
protected:
    QString id;
    QString title;
    QString description;
    QString timeCreated;
    QString timeUpdated;
    QString owner;
    QString ownerIcon;

    QList<Comment *> *comments;
};

#endif // CVCONTENT_H
